package Core;

public class Position
{
    private int line;
    private int column;
    
    
    public Position (int line, int column)
    {
	this.line = line;
	this.column = column;
    }


    public int getLine()
    {
        return line;
    }


    public void setLine(int line)
    {
        this.line = line;
    }


    public int getColumn()
    {
        return column;
    }
    
    public boolean equals(Object o)
    {
	if (this == o)
	    return true;
	if (o == null || getClass() != o.getClass())
	    return false;

	Position p = (Position) o;

	if (this.line == p.getLine() && this.column == p.column)
	    return true;
	return false;
    }


    public void setColumn(int column)
    {
        this.column = column;
    }
    
    public String toString()
    {
	return "Position en x : "+this.line+" Position en y : "+this.column;
	
    }
}
